package com.modai.springcloud.service;

import com.modai.springcloud.entities.CommonResult;
import com.modai.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ：modai
 * @date ：Created in 2020-12-18 21:42
 * @description：
 */

@FeignClient(value = "nacos-payment-provider",fallback = OrderFallback.class)
public interface OrderService {

    @GetMapping("/payment/{id}")
    public CommonResult<Payment> pay(@PathVariable(value = "id") Long id);

}
